<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver ADS1118: ads1118 example driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver ADS1118
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">ADS1118 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ads1118__example__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ads1118 example driver function<div class="ingroups"><a class="el" href="group__ads1118__driver.html">ads1118 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ads1118 example driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga2be8a47aef9bdae0b605268b44f6afe7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga2be8a47aef9bdae0b605268b44f6afe7">ADS1118_BASIC_DEFAULT_RANGE</a>&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad54eb5fd2837dffd5ead493710d45063">ADS1118_RANGE_6P144V</a></td></tr>
<tr class="memdesc:ga2be8a47aef9bdae0b605268b44f6afe7"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 basic example default definition  <a href="group__ads1118__example__driver.html#ga2be8a47aef9bdae0b605268b44f6afe7">More...</a><br /></td></tr>
<tr class="separator:ga2be8a47aef9bdae0b605268b44f6afe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga41367422089cd9a222212c1046a3ecff"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga41367422089cd9a222212c1046a3ecff">ADS1118_BASIC_DEFAULT_RATE</a>&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8aba07a6359dee87c7c7686b2f670216c1">ADS1118_RATE_128SPS</a></td></tr>
<tr class="separator:ga41367422089cd9a222212c1046a3ecff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6bd3b85f830a37d120b70e2b60dacca2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga6bd3b85f830a37d120b70e2b60dacca2">ADS1118_BASIC_DEFAULT_DOUT_PULL_UP</a>&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a20394de6d87f9867988d8d9d745596e1">ADS1118_BOOL_FALSE</a></td></tr>
<tr class="separator:ga6bd3b85f830a37d120b70e2b60dacca2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab3f03e62e69a8a08302e09d21181a90a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#gab3f03e62e69a8a08302e09d21181a90a">ADS1118_SHOT_DEFAULT_RANGE</a>&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad54eb5fd2837dffd5ead493710d45063">ADS1118_RANGE_6P144V</a></td></tr>
<tr class="memdesc:gab3f03e62e69a8a08302e09d21181a90a"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 shot example default definition  <a href="group__ads1118__example__driver.html#gab3f03e62e69a8a08302e09d21181a90a">More...</a><br /></td></tr>
<tr class="separator:gab3f03e62e69a8a08302e09d21181a90a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaab43c6b41b7a2ac6c2d7d105b48783c2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#gaab43c6b41b7a2ac6c2d7d105b48783c2">ADS1118_SHOT_DEFAULT_RATE</a>&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8aba07a6359dee87c7c7686b2f670216c1">ADS1118_RATE_128SPS</a></td></tr>
<tr class="separator:gaab43c6b41b7a2ac6c2d7d105b48783c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga19ceb9d060ede7982961a6d43e32696e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga19ceb9d060ede7982961a6d43e32696e">ADS1118_SHOT_DEFAULT_DOUT_PULL_UP</a>&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a20394de6d87f9867988d8d9d745596e1">ADS1118_BOOL_FALSE</a></td></tr>
<tr class="separator:ga19ceb9d060ede7982961a6d43e32696e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga7c4e0a15069bde8b4d4e4f99e6f2c35c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga7c4e0a15069bde8b4d4e4f99e6f2c35c">ads1118_basic_init</a> (<a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> mode, <a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga7c4e0a15069bde8b4d4e4f99e6f2c35c"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example init  <a href="group__ads1118__example__driver.html#ga7c4e0a15069bde8b4d4e4f99e6f2c35c">More...</a><br /></td></tr>
<tr class="separator:ga7c4e0a15069bde8b4d4e4f99e6f2c35c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7c0d9e5fe70f51f953229d203980ffcd"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga7c0d9e5fe70f51f953229d203980ffcd">ads1118_basic_deinit</a> (void)</td></tr>
<tr class="memdesc:ga7c0d9e5fe70f51f953229d203980ffcd"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example deinit  <a href="group__ads1118__example__driver.html#ga7c0d9e5fe70f51f953229d203980ffcd">More...</a><br /></td></tr>
<tr class="separator:ga7c0d9e5fe70f51f953229d203980ffcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6ea42675fee5156a2a4d14273e2f6931"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga6ea42675fee5156a2a4d14273e2f6931">ads1118_basic_read</a> (float *s)</td></tr>
<tr class="memdesc:ga6ea42675fee5156a2a4d14273e2f6931"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example read  <a href="group__ads1118__example__driver.html#ga6ea42675fee5156a2a4d14273e2f6931">More...</a><br /></td></tr>
<tr class="separator:ga6ea42675fee5156a2a4d14273e2f6931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga751238b2e8b8f72fe93c478ece7086b1"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga751238b2e8b8f72fe93c478ece7086b1">ads1118_basic_read_temperature</a> (float *deg)</td></tr>
<tr class="memdesc:ga751238b2e8b8f72fe93c478ece7086b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">basic example read  <a href="group__ads1118__example__driver.html#ga751238b2e8b8f72fe93c478ece7086b1">More...</a><br /></td></tr>
<tr class="separator:ga751238b2e8b8f72fe93c478ece7086b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78673d92871e27ae2f04dcaddc656491"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga78673d92871e27ae2f04dcaddc656491">ads1118_shot_init</a> (<a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> mode, <a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga78673d92871e27ae2f04dcaddc656491"><td class="mdescLeft">&#160;</td><td class="mdescRight">shot example init  <a href="group__ads1118__example__driver.html#ga78673d92871e27ae2f04dcaddc656491">More...</a><br /></td></tr>
<tr class="separator:ga78673d92871e27ae2f04dcaddc656491"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab190ac8164d3f2efcb1443f75d6865ce"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#gab190ac8164d3f2efcb1443f75d6865ce">ads1118_shot_read</a> (float *s)</td></tr>
<tr class="memdesc:gab190ac8164d3f2efcb1443f75d6865ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">shot example read  <a href="group__ads1118__example__driver.html#gab190ac8164d3f2efcb1443f75d6865ce">More...</a><br /></td></tr>
<tr class="separator:gab190ac8164d3f2efcb1443f75d6865ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga77a1baf6dda47c7de650fa7795edcb40"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga77a1baf6dda47c7de650fa7795edcb40">ads1118_shot_read_temperature</a> (float *deg)</td></tr>
<tr class="memdesc:ga77a1baf6dda47c7de650fa7795edcb40"><td class="mdescLeft">&#160;</td><td class="mdescRight">shot example read  <a href="group__ads1118__example__driver.html#ga77a1baf6dda47c7de650fa7795edcb40">More...</a><br /></td></tr>
<tr class="separator:ga77a1baf6dda47c7de650fa7795edcb40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga41b13842133fae98bd4e588ae7af8b31"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__example__driver.html#ga41b13842133fae98bd4e588ae7af8b31">ads1118_shot_deinit</a> (void)</td></tr>
<tr class="memdesc:ga41b13842133fae98bd4e588ae7af8b31"><td class="mdescLeft">&#160;</td><td class="mdescRight">shot example deinit  <a href="group__ads1118__example__driver.html#ga41b13842133fae98bd4e588ae7af8b31">More...</a><br /></td></tr>
<tr class="separator:ga41b13842133fae98bd4e588ae7af8b31"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ads1118 example driver modules </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga6bd3b85f830a37d120b70e2b60dacca2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6bd3b85f830a37d120b70e2b60dacca2">&#9670;&nbsp;</a></span>ADS1118_BASIC_DEFAULT_DOUT_PULL_UP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADS1118_BASIC_DEFAULT_DOUT_PULL_UP&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a20394de6d87f9867988d8d9d745596e1">ADS1118_BOOL_FALSE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>disable dout pull up </p>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__basic_8h_source.html#l00058">58</a> of file <a class="el" href="driver__ads1118__basic_8h_source.html">driver_ads1118_basic.h</a>.</p>

</div>
</div>
<a id="ga2be8a47aef9bdae0b605268b44f6afe7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2be8a47aef9bdae0b605268b44f6afe7">&#9670;&nbsp;</a></span>ADS1118_BASIC_DEFAULT_RANGE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADS1118_BASIC_DEFAULT_RANGE&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad54eb5fd2837dffd5ead493710d45063">ADS1118_RANGE_6P144V</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 basic example default definition </p>
<p>set range 6.144V </p>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__basic_8h_source.html#l00056">56</a> of file <a class="el" href="driver__ads1118__basic_8h_source.html">driver_ads1118_basic.h</a>.</p>

</div>
</div>
<a id="ga41367422089cd9a222212c1046a3ecff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga41367422089cd9a222212c1046a3ecff">&#9670;&nbsp;</a></span>ADS1118_BASIC_DEFAULT_RATE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADS1118_BASIC_DEFAULT_RATE&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8aba07a6359dee87c7c7686b2f670216c1">ADS1118_RATE_128SPS</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>set 128 SPS </p>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__basic_8h_source.html#l00057">57</a> of file <a class="el" href="driver__ads1118__basic_8h_source.html">driver_ads1118_basic.h</a>.</p>

</div>
</div>
<a id="ga19ceb9d060ede7982961a6d43e32696e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga19ceb9d060ede7982961a6d43e32696e">&#9670;&nbsp;</a></span>ADS1118_SHOT_DEFAULT_DOUT_PULL_UP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADS1118_SHOT_DEFAULT_DOUT_PULL_UP&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a20394de6d87f9867988d8d9d745596e1">ADS1118_BOOL_FALSE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>disable dout pull up </p>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__shot_8h_source.html#l00056">56</a> of file <a class="el" href="driver__ads1118__shot_8h_source.html">driver_ads1118_shot.h</a>.</p>

</div>
</div>
<a id="gab3f03e62e69a8a08302e09d21181a90a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab3f03e62e69a8a08302e09d21181a90a">&#9670;&nbsp;</a></span>ADS1118_SHOT_DEFAULT_RANGE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADS1118_SHOT_DEFAULT_RANGE&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad54eb5fd2837dffd5ead493710d45063">ADS1118_RANGE_6P144V</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 shot example default definition </p>
<p>set range 6.144V </p>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__shot_8h_source.html#l00054">54</a> of file <a class="el" href="driver__ads1118__shot_8h_source.html">driver_ads1118_shot.h</a>.</p>

</div>
</div>
<a id="gaab43c6b41b7a2ac6c2d7d105b48783c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaab43c6b41b7a2ac6c2d7d105b48783c2">&#9670;&nbsp;</a></span>ADS1118_SHOT_DEFAULT_RATE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADS1118_SHOT_DEFAULT_RATE&#160;&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8aba07a6359dee87c7c7686b2f670216c1">ADS1118_RATE_128SPS</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>set 128 SPS </p>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__shot_8h_source.html#l00055">55</a> of file <a class="el" href="driver__ads1118__shot_8h_source.html">driver_ads1118_shot.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga7c0d9e5fe70f51f953229d203980ffcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7c0d9e5fe70f51f953229d203980ffcd">&#9670;&nbsp;</a></span>ads1118_basic_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_basic_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__basic_8c_source.html#l00189">189</a> of file <a class="el" href="driver__ads1118__basic_8c_source.html">driver_ads1118_basic.c</a>.</p>

</div>
</div>
<a id="ga7c4e0a15069bde8b4d4e4f99e6f2c35c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7c4e0a15069bde8b4d4e4f99e6f2c35c">&#9670;&nbsp;</a></span>ads1118_basic_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_basic_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example init </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>adc mode </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">channel</td><td>adc channel </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__basic_8c_source.html#l00050">50</a> of file <a class="el" href="driver__ads1118__basic_8c_source.html">driver_ads1118_basic.c</a>.</p>

</div>
</div>
<a id="ga6ea42675fee5156a2a4d14273e2f6931"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6ea42675fee5156a2a4d14273e2f6931">&#9670;&nbsp;</a></span>ads1118_basic_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_basic_read </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*s</td><td>pointer to a converted adc buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__basic_8c_source.html#l00142">142</a> of file <a class="el" href="driver__ads1118__basic_8c_source.html">driver_ads1118_basic.c</a>.</p>

</div>
</div>
<a id="ga751238b2e8b8f72fe93c478ece7086b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga751238b2e8b8f72fe93c478ece7086b1">&#9670;&nbsp;</a></span>ads1118_basic_read_temperature()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_basic_read_temperature </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>deg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>basic example read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*deg</td><td>pointer to a converted adc buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__basic_8c_source.html#l00163">163</a> of file <a class="el" href="driver__ads1118__basic_8c_source.html">driver_ads1118_basic.c</a>.</p>

</div>
</div>
<a id="ga41b13842133fae98bd4e588ae7af8b31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga41b13842133fae98bd4e588ae7af8b31">&#9670;&nbsp;</a></span>ads1118_shot_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_shot_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>shot example deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__shot_8c_source.html#l00179">179</a> of file <a class="el" href="driver__ads1118__shot_8c_source.html">driver_ads1118_shot.c</a>.</p>

</div>
</div>
<a id="ga78673d92871e27ae2f04dcaddc656491"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga78673d92871e27ae2f04dcaddc656491">&#9670;&nbsp;</a></span>ads1118_shot_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_shot_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>shot example init </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>adc mode </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">channel</td><td>adc channel </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__shot_8c_source.html#l00050">50</a> of file <a class="el" href="driver__ads1118__shot_8c_source.html">driver_ads1118_shot.c</a>.</p>

</div>
</div>
<a id="gab190ac8164d3f2efcb1443f75d6865ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab190ac8164d3f2efcb1443f75d6865ce">&#9670;&nbsp;</a></span>ads1118_shot_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_shot_read </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>shot example read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*s</td><td>pointer to a converted adc buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__shot_8c_source.html#l00132">132</a> of file <a class="el" href="driver__ads1118__shot_8c_source.html">driver_ads1118_shot.c</a>.</p>

</div>
</div>
<a id="ga77a1baf6dda47c7de650fa7795edcb40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga77a1baf6dda47c7de650fa7795edcb40">&#9670;&nbsp;</a></span>ads1118_shot_read_temperature()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_shot_read_temperature </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>deg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>shot example read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*deg</td><td>pointer to a converted adc buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118__shot_8c_source.html#l00153">153</a> of file <a class="el" href="driver__ads1118__shot_8c_source.html">driver_ads1118_shot.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
